package com.kongyz.image;

/**
 * @author kongyz
 * @date 2018/6/30 13:37
 * @Description:
 */
public class RealImage implements Image {
    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    public void display() {
        System.out.println("显示图片："+fileName);
    }

    private void loadFromDisk(String fileName){
        System.out.println("加载文件："+fileName);
    }
}
